﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">

<head>
  <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
  <title>hCalendar 9 - geo comprehensive data format test</title>
  
  <!-- This will be replace with one CSS file and one JavaScipt file -->
  <link rel="stylesheet" href="../css/uftestsuite.css" type="text/css" />
  <link rel="stylesheet" href="../../testrunner/css/testrunner.css" type="text/css" />
  
  <script type="text/javascript" src="../../testrunner/javascript/prototype-1.6.0.2.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/beautify.js"></script> 
  <script type="text/javascript" src="../../testrunner/javascript/sumo/microformat.js"></script>
  <script type="application/javascript;version=1.7" src="http://svn.mozilla.org/labs/operator/chrome/content/Microformats/Microformats.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-shiv.js"></script>
  <script type="text/javascript" src="../../testrunner/javascript/shiv/microformats-definition.js"></script>  
  <script type="text/javascript" src="../../testrunner/javascript/testrunner.js"></script>
   
</head>
<body>
    
    
    <div class="test-fixture">
    
    <p>
    <a href="../"><img border="0" id="testsuite-image" alt="Microformats test suite" src="../images/testsuite.gif" /></a><br />
    </p>
    
    <h1 class="summary">hCalendar 9 - geo comprehensive data format test</h1>
    
    <p class="description">This page was design to comprehensively test the geo format. Most of these tests are based on <span class="vcard">
    <a href="http://www.kaply.com/weblog/"class="fn url">Mike Kaply</a></span> work for the 
	Firefox.</p>
	
    <p>From: <a href="default.htm"><span class="format">hCalendar</span> test suite 1.0</a></p>
    <p class="author vcard">
        Author: <a class="url fn" href="http://www.glennjones.net/">Glenn Jones</a> 
    </p>
    
        <input id="unittestbutton" type="button" onclick="microformatsTestRunner.displayTestOptionForm()" value="Unit Test Runner"/>

      
    <p>Tests:</p>
    <table id="assetTable" cellpadding="0" cellspacing="0">
    <thead>
        <tr>
            <th>Test</th>
            <th>Result</th>
            <th>Comment</th>
        </tr>
    </thead>
    	<tbody>
    	
	  		  <tr class="assert">
	            <td class="test">vevent[0].geo.latitude</td>
	            <td class="result">IsEqualTo("0")</td>
	            <td class="comment">Should find latitude value from single element</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[1].geo.latitude</td>
	            <td class="result">IsEqualTo("0")</td>
	            <td class="comment">Should find latitude value from single element</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[2].geo.latitude</td>
	            <td class="result">IsEqualTo("0")</td>
	            <td class="comment">Should find latitude value from single element</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[3].geo.latitude</td>
	            <td class="result">IsEqualTo("23.7")</td>
	            <td class="comment">Should find latitude value from single element</td>
	        </tr>
	        
	        <tr class="assert">
	            <td class="test">vevent[4].geo.latitude</td>
	            <td class="result">IsEqualTo("0")</td>
	            <td class="comment">Should find latitude value from single element</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[5].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[6].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[7].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[8].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[9].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[10].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[11].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[12].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	
	        <tr class="assert">
	            <td class="test">vevent[13].geo</td>
	            <td class="result">HasProperty(false)</td>
	            <td class="comment">Is an illegal data format for geo</td>
	        </tr>
	       

         </tbody>
    </table> 
    
    
    <p>History:</p>
    
    <ul>
    <li class="history vevent">
        <span class="summary">Created</span>: <abbr class="dtstart" title="2008-06-07">7 June 2008</abbr> 
        <span class="description">by Glenn Jones</span>
    </li>
    </ul>
    
    
    
    </div>
  
    <div id="uf">
    
    	<!-- This may not be the best semantic use of HTML element -->
    	
    	
    	<h3>Legal geo</h3>
    	
 		<!-- 0  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="200801">1 June </abbr></div>
			<div><a class="url uid" href="http://1.example.com">1.example.com</a></div>
			<span class="geo"><span class="latitude">0</span>, <span class="longitude">0</span></span>
		</div>

    	<!-- 1  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20080121">1 June </abbr></div>
			<div><a class="url uid" href="http://2.example.com">2.example.com</a></div>
			<span class="geo"><span class="latitude">0.0</span>, <span class="longitude">0.0</span></span>
		</div>
		
		<!-- 2  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T1130">1 June </abbr></div>
			<div><a class="url uid" href="http://3.example.com">3.example.com</a></div>
			<span class="geo"><span class="latitude">0.</span>, <span class="longitude">0.</span></span>
		</div>

		<!-- 3  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T113015">1 June </abbr></div>
			<div><a class="url uid" href="http://4.example.com">4.example.com</a></div>
			<abbr class="geo" title="+23.70000;+90.30000">Dhaka, Bangladesh</abbr>
		</div>
		
		<!-- 4  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T113015Z">1 June </abbr></div>
			<div><a class="url uid" href="http://5.example.com">5.example.com</a></div>
			<span class="geo">0;0</span>
		</div>
		
		
		<h3>Illegal geo</h3>
		
		<!-- 5  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501t113015z">1 June </abbr></div>
			<div><a class="url uid" href="http://6.example.com">6.example.com</a></div>
			<span class="geo"><span class="latitude">abc</span>, <span class="longitude">def</span></span>
		</div>

		<!-- 6  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="2007-05-01T113025">1 June </abbr></div>
			<div><a class="url uid" href="http://7.example.com">7.example.com</a></div>
			<span class="geo"><span class="latitude">12.s2</span>, <span class="longitude">1d.23</span></span>
		</div>
		
		<!-- 7  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://8.example.com">8.example.com</a></div>
			<span class="geo"><span class="latitude">999.99</span>,<span class="longitude">999</span></span>
		</div> 
		
		<!-- 8  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://9.example.com">9.example.com</a></div>
			<span class="geo"><span class="latitude">-181</span>, <span class="longitude">-361</span></span>
		</div>
		
		<!-- 9  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://10.example.com">10.example.com</a></div>
			<span class="geo">abc;def</span>
		</div>


		<!-- 10  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://11.example.com">11.example.com</a></div>
			<span class="geo">12.s2;1d.23</span>
		</div>


		<!-- 11  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://12.example.com">12.example.com</a></div>
			<span class="geo">999.99;999</span> 

		</div>


		<!-- 12  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://13.example.com">13.example.com</a></div>
			<span class="geo">-181;-361</span>
		</div>



		<!-- 13  -->
		<div class="vevent">
			<div class="summary">Web Standards meet up</div>
			<div>Starts: <abbr class="dtstart" title="20070501T11:30:25">1 June </abbr></div>
			<div><a class="url uid" href="http://14.example.com">14.example.com</a></div>
			<span class="geo">-18;;-31</span>
		</div>


		
    
    </div>
    
    <p>
        <a rel="license" href="../license.txt">Some rights reserved</a>
    </p>
      
</body>

</html>